package com.weiaibenpao.demo.chislim.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/1/8.
 */

public class Praise implements Parcelable {

    /**
     * userImage : http://q.qlogo.cn/qqapp/1105642894/3E8FB3829A31EA07488DDBE5DC8AE0E2/100
     * userName : 艾希控
     * id : 0
     * userId : 39
     * humorId : 0
     * createTime : 0
     * isDelete : N
     */

    private String userImage;
    private String userName;
    private int id;
    private int userId;
    private int humorId;
    private int createTime;
    private String isDelete;

    protected Praise(Parcel in) {
        userImage = in.readString();
        userName = in.readString();
        id = in.readInt();
        userId = in.readInt();
        humorId = in.readInt();
        createTime = in.readInt();
        isDelete = in.readString();
    }

    public static final Creator<Praise> CREATOR = new Creator<Praise>() {
        @Override
        public Praise createFromParcel(Parcel in) {
            return new Praise(in);
        }

        @Override
        public Praise[] newArray(int size) {
            return new Praise[size];
        }
    };

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getHumorId() {
        return humorId;
    }

    public void setHumorId(int humorId) {
        this.humorId = humorId;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userImage);
        dest.writeString(userName);
        dest.writeInt(id);
        dest.writeInt(userId);
        dest.writeInt(humorId);
        dest.writeInt(createTime);
        dest.writeString(isDelete);
    }
}
